home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
dev
/
c
/
AmiVoGL_MDEV.lha
/
hershey
/
src
/
halloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-06
|
463b
|
27 lines
/* halloc.c: */
#include <stdio.h>
#include <stdlib.h>
#include "vogl.h"
#include "hershey.h"
/* --------------------------------------------------------------------- */
/*
* hallocate
*
* Allocate some memory, barfing if malloc returns NULL.
*/
char * hallocate(unsigned size)
{
char *p;
if ((p = (char *)malloc(size)) == (char *)NULL) {
fprintf(stderr,"hallocate: request for %u bytes returned NULL", size);
gexit();
exit(1);
}
return (p);
}